<div class="headbar" >
    <ul class="nav-bar" id="navBar">

        <li class="nav-title-box" ng-class="showBottomLine(item)" id="first_head" ng-repeat="item in barItems"  on-finish-render="ngRepeatFinished">
            <button  ng-click="selectHead(item)"  name="{{item.id}}" ng-class="{ true: 'nav-selected'}[item==navSelect]" class="nav-title nav-titles nav-title-{{$index}} ">{{item.name}}</button>
        </li>
    </ul>
</div>